<?php

namespace App\Providers;

// 分页类
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\View;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        // 调用bootstrap的分页结构
        Paginator::useBootstrap();

        // 设置默认字符串长度
        Schema::defaultStringLength(191);

        View::share('demo','test');
    }
}
